Examples of Replace Content With |
|
Replace Content With with Select
Target Element before Message Mapping |
Source Element |
Target Element after Message Mapping |
---|---|---|
The Target element is/UpdateInput/Update/tupleand the XML structure of the Target element before mapping the message is as follows: <UpdateInput> <Update> <tuple> <old/> </tuple> </Update> </UpdateInput> |
The Source element is/newand the XML structure of the Source element is as follows: <new> <Orders> <OrderID>100</OrderID> </Orders> </new> |
<UpdateInput> <Update> <tuple> <new> <Orders> <OrderID>100</OrderID> </Orders> </new> </tuple> </Update> </UpdateInput> |
The following is another example of this operation type.
Target Element before Message Mapping |
Source Element |
Target Element after Message Mapping |
---|---|---|
The Target element is/Orders/OrderIDand the XML structure of the Target element before mapping the message is as follows: <Orders> <OrderID>100</OrderID> </Orders> |
The Source element is/OrdersDetails/OrderID/text()and the XML structure of the Source element is as follows: <OrdersDetails> <OrderID>250</OrderID> </OrdersDetails> |
<Orders> <OrderID>250</OrderID> </Orders> |
Replace Content With with Fixed Value
Target Element before Message Mapping |
Source Element |
Target Element after Message Mapping |
---|---|---|
The Target element is/Orders/OrderIDand the XML structure of the Target element before mapping the message is as follows: <Orders> <OrderID>100</OrderID> </Orders> |
The Source element is250and the XML structure of the Source element is250. |
<Orders> <OrderID>250</OrderID> </Orders> |
Replace Content With with Expression
Target Element before Message Mapping |
Source Element |
Target Element after Message Mapping |
---|---|---|
The Target element is/Employee/AnnualSalaryand the XML structure of the Target element before mapping the message is as follows: <Employee> <AnnualSalary>5000</AnnualSalary> </Employee> |
The Source element isEmployee/MonthlySalary * 12and the XML structure of the Source element is1000 * 12 = 12000. |
<Employee> <AnnualSalary>12000</AnnualSalary> </Employee> |
Replace Content With with XML Structure
Target Element before Message Mapping |
Source Element |
Target Element after Message Mapping |
---|---|---|
The Target element is/UpdateInput/Update/tupleand the XML structure of the Target element before mapping the message is as follows: <UpdateInput> <Update> <tuple> <old> <Order> <OrderID>100</OrderID> </Order> </old> </tuple> </Update> </UpdateInput> |
The Source element is<new><Orders><OrderID/></Orders></new>and the XML structure of the Source element is as follows: <new> <Orders> <OrderID/> </Orders> </new> |
<UpdateInput> <Update> <tuple> <new> <Orders> <OrderID/> </Orders> </new> </tuple> </Update> </UpdateInput> |